import os
import uuid

class Myfile:
    def __int__(self):
        self.dir="./static/files"
    #重命名
    def rename(self,filename):
        name=os.path.splitext(filename)[1]
        fname=uuid.uuid4().hex+name
        return fname
myfile=Myfile()